Results 1 to 3 of 3

Thread: SQL issues

  1. #1
    Millerjames is offline Senior Member
    Join Date
    Dec 2009
    Posts
    331
    Rep Power
    3

    Default SQL issues

    Hi. I am learning SQL. I have some issue while learning SQL

    • difference between char and varchar in SQL server 2005

    • what is composite key and candidate key

    • how to calculate difference between two dates

    If you have any detailed info related this topic then let me know that it is highly appreciated.

  2. #2
    Davisricky is offline Senior Member
    Join Date
    Dec 2009
    Posts
    331
    Rep Power
    3

    Default

    • Char data type is used to save fixed length character value and varchar is used to store variable length character value.

    • Combination of multiple fields will create the uniqueness is called composite key.

    • A field has the capability to become a primary key is known as candidate key

    • Using DATEDIFF function
    For example: SELECT DATEDIFF(dd,"16 june 2010","18 july 2010")

  3. #3
    Garcíarobine is offline Senior Member
    Join Date
    Dec 2009
    Posts
    334
    Rep Power
    3

    Default

    Thanks for giving such a nice information…….

Similar Threads

  1. Replies: 0
    Last Post: 12-18-2009, 04:16 AM
  2. HP printer issues.
    By Cadmus4778 in forum Printer
    Replies: 1
    Last Post: 07-31-2009, 12:17 PM
  3. Issues related to Wi-Fi
    By Daniel Boel in forum General Networking
    Replies: 0
    Last Post: 05-18-2009, 11:21 AM
  4. Key issues
    By uncosto46 in forum Everything Else
    Replies: 0
    Last Post: 07-26-2008, 06:46 PM
  5. Key issues
    By rinakh in forum General Internet Terms
    Replies: 0
    Last Post: 07-25-2008, 06:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48