![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sybase and shell | melanie_pfefer | Shell Programming and Scripting | 1 | 03-25-2008 07:02 PM |
| Need sybase sql command help | jagdish.machhi@ | UNIX for Advanced & Expert Users | 4 | 02-20-2008 11:26 PM |
| Print out loop index on the console after executing each sybase DB query | Alaeddin | Shell Programming and Scripting | 2 | 12-16-2007 04:30 AM |
| Dynamic update loop query on Sybase database | Alaeddin | Shell Programming and Scripting | 10 | 12-13-2007 06:26 AM |
| Connect From VB to Sybase 11 | Than Chanroeun | SUN Solaris | 2 | 08-18-2006 12:42 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Need help with complex SQL query (Sybase)
Hello,
I have three tables. I need an SQL query (preferably Sybase) that will return all of the stringID values of table B where the following conditions exist: (1) B.intID = A.intID (2) B.intID != C.intID or (B.intID = C.intID and (C.v1 = 0 or C.v2 = 0)) Here are the table defs: create table A ( intID int } create table B ( intID int, stringID varchar(15) ) create table C ( stringID varchar(15), v1 int, v2 int ) Thanks for any input, Elizabeth |
| Bookmarks |
| Tags |
| query, sql, sybase |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|