what is the main difference between constraints(like
primary key etc..)& joins?
Answers were Sorted based on User's Feedback
Answer / ravikiran
Constraints are the mechanisms used by the sql server to
control unwanted or invalid data flow into a table.
Joins are the queries used to combine the rows from two or
more tables.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / monal
Constraints are restrictions to make sure that data entered
in a table must meet certain crietria. You can put
constraint at either table level or column level. There are
5 types of constraints. Primary Key, Foregin Key, Unique,
Check and NOT NULL.
Joins are used to combine rows from one or more table. One
table using Self Join and More tables using inner join,
outer join, cross join.
Is This Answer Correct ? | 2 Yes | 1 No |
How should i optimize the time for execution of stored procedure having single input and many output from the different tables?
What is page in sql server?
can you any body tell me the difference between candidate key and primary key
We create an index to fast the search. How it fast the query? Do we write any special keyword with query?
How can we rewrite sub-queries into simple select statements or with joins?
How do I start sql server agent automatically?
What is simple indexing method?
how can we know that how many users are connected in perticuler server??????
what are constraints? : Sql server database administration
What is raiseerror? What is raiseerror?
How many types of TRIGGERS are there in MS SQL Server?
8 Answers CarrizalSoft Technologies, TCS, United Healthcare,
i have a table #temp1(id, Name groupname ) and record like this 1 R1 S 2 R3 S 3 R2 S 4 R4 D 5 R5 D 6 R6 K 7 R7 K 8 R8 L 9 R9 L 10 R10 L 11 R11 K and i want to display record based on user defind sorting order e.g. 1 R4 D 2 R5 D 3 R6 K 4 R7 K 5 R11 K 6 R1 S 7 R3 S 8 R2 S 9 R8 L 10 R9 L 11 R10 L