|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi
I am pretty new to database. I want to know the difference between the 2 queries given below 1> SELECT B.col4, A.col4 , A.col5, C.col5 from tbltpcheckout A with (nolock) inner join tblTPEFTPayPal B with (nolock) on A.col1 = B.col1 inner join tbltpuser C with (nolock) on A.col3 = C.col3 where A.col2 = CONTP_CHECKOUT_STATUS_PENDING 2> SELECT B.col4, A.col4 , A.col5, C.col5 from tbltpcheckout A with (nolock) , tblTPEFTPayPal B with (nolock), tbltpuser C with (nolock) where A.col1 = B.col1 and A.col3 = B.col3 and A.col2 = CONTP_CHECKOUT_STATUS_PENDING If any one can help me in understanding the difference Thanks Murali |
|
#2
|
|||
|
|||
|
if this
Code:
A.col3 = B.col3 and is a mistype for Code:
A.col3 = C.col3 and then there is no difference |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > difference in queries |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|