Viewing 15 posts - 8,326 through 8,340 (of 10,144 total)
SELECT a.GROUPNUMBER, a.SSN,
ISNULL(b1.FIRSTNAME, b.FIRSTNAME) AS FIRSTNAME,
ISNULL(b1.LASTNAME, b.LASTNAME) AS LASTNAME
FROM tblNewData a
LEFT OUTER JOIN tblExistingData b1
ON b1.GROUPNUMBER =...
December 21, 2009 at 8:50 am
I've always used this method:
SELECT a.*, b1.*, b.*
FROM tblNewData a
LEFT OUTER JOIN tblExistingData b1
ON b1.GROUPNUMBER = a.GROUPNUMBER AND b1.SSN = a.SSN
LEFT OUTER JOIN tblExistingData b
ON a.GROUPNUMBER =...
December 21, 2009 at 8:03 am
What have you done so far? Even if this is homework you may still get help with it, especially if you can demonstrate a willingness to do at least some...
December 21, 2009 at 7:44 am
shriramrc 75244 (12/21/2009)
Hi here is my code....
So what? We've known for years that the answer is 42.
December 21, 2009 at 7:06 am
Your output list includes a column with an alias not used in the query (which uses aliases a, g and h):
SELECT a.IPEquipmentID IPEquipmentDataRowID, a.IPEquipmentName, a.IPEquipmentTypeID,
g.ManagementIPAddress, g.VoiceIPAddress, p.HDFReference,
h.IPTVStateID as...
December 21, 2009 at 4:47 am
sandy-833685 (12/18/2009)
common understanding is i am having...
December 18, 2009 at 5:44 am
sandy-833685 (12/18/2009)
I had provided the sample data only
Sandy, please review and adjust the following sample code to match your sample data.
CREATE TABLE #Sample (Col1 CHAR(3), Col2 VARCHAR(60), Col3 VARCHAR(60))
INSERT INTO...
December 18, 2009 at 5:05 am
ningaraju.n (12/18/2009)
yes...you are right
Restate your requirements - this is a very straightforward query.
December 18, 2009 at 4:29 am
ningaraju.n (12/18/2009)
Group1: Java,Perl
Group2: Java,PHP
If an Candidate has both java and perl knowledge and then he has the full knowledge of Group1 then he...
December 18, 2009 at 4:19 am
ningaraju.n (12/18/2009)
Group1: Java,Perl
Group2: Java,PHP
If an Candidate has both java and perl knowledge and then he has the full knowledge of Group1 then he...
December 18, 2009 at 3:43 am
ningaraju.n (12/18/2009)
Friend ,Thanks for your Query,I tried and compare with the other possibilities that i have mentioned in post, but yours taking more reads than other possibilities.
Please check it once
Can...
December 18, 2009 at 3:04 am
ningaraju.n (12/17/2009)
Moe is winne because he has the skills PHP and java which belongs to Group 2
Must a winner have all the skills of the group?
December 18, 2009 at 2:03 am
Here's one way to do it - I suspect the performance would really suck on a large data set though.
SELECT pt.dtCheckIn, pt.dtCheckOut, pt.sGuestFName, pt.sGuestLName, ct.*
FROM (
SELECT CurrentID =...
December 16, 2009 at 10:18 am
I'd go along with Jack on this one.
December 16, 2009 at 7:42 am
What do you want your output to look like, using the sample data you've provided?
December 16, 2009 at 7:37 am
Viewing 15 posts - 8,326 through 8,340 (of 10,144 total)