Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 9th, 2004, 10:58 PM
Brick1235 Brick1235 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 31 Brick1235 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Pls explain the following Experts. Thank you.

Can someone explain to me these few Select statements. This is my first time seeing such a statement.

This is the First:

select * from vrptindlast where 1 =2

This don't come out anything when I put into SQL but I saw in The prorgam actually works. Maybe the '1' is assign as a variable column and '2' could be another variable that assigns the search value to compare. Could be lah.

This is the second:

SELECT [drawing project].jobno, inputdate, [drawing project].service, jobdes, requestdate, startdate, expcompleteddate, [drawing details].dwgno, dateinputamend, cadname, drawnby, drawndate, dwgscale, revision_issue, package_issue, subservice, dwgtitle, degcompletedate, proclosedate, maxdate, viewr1aa.tspercent

FROM [drawing details], [drawing project], viewr1aa

WHERE [drawing details].jobno = [drawing project].jobno and viewr1aa.dwgno = [drawing details].dwgno and 1=2

Also first time see such a statement. Didn't know you can do an IF statement like this. Oh yeah what if the condition is not meet? I guess it won't dislay that column right. Pls tell... I kinda have 1/2 a clue only.

This is the third:

What does '?' mean?

select * from view3 Where (s_code = ?)

This is found inside the VB6.0 DataEnvironment.

NHK

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Pls explain the following Experts. Thank you.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT