Author Topic: SQL querries  (Read 3224 times)

Offline anurag08

  • STP Super Hero
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 589
  • Posts: 632
  • Rating : +597/-0
SQL querries
« on: August 23, 2007, 11:11 AM »
All the basic SQL querries compiled into a single word file
Liked the Post??
Please say thanks ....

   

Offline fiedel

  • STP Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 4
  • Rating : +1/-0
Re: SQL querries
« Reply #1 on: July 12, 2011, 10:07 PM »
Added to the above Post... there are some techniques for writing the queries as follows

Using Subqueries

When you decide to use subqueries, consider the following facts and guidelines:

    1.You must enclose subqueries in parentheses.

    2.You can only use one expression or column name in the select list of a subquery that returns a value.

    3.You can use subqueries in place of an expression as long as a single value or list of values is returned.

    4.You cannot use subqueries on columns that contain text and image data types.

    5.You can have as many levels of subqueries as you need—there is no limit.

    6.The query that contains the subquery is usually called the outer query and a subquery is called an inner query.

Tags:
 

Jokes on Sardar