Viewing 13 posts - 16 through 28 (of 28 total)
Msg 145, Level 15, State 1, Line 1
ORDER BY items must appear in the select list if SELECT DISTINCT is specified.
I am getting above error When am trying with...
November 9, 2012 at 4:15 am
Please find attachedn abc.png..
still is not working with the query.
Please help me on this
November 9, 2012 at 4:10 am
This works Great.. Thanks a lot
October 25, 2012 at 5:02 am
Person_Id field created with uniqueidentifier
October 25, 2012 at 4:38 am
Hi,
Please find the following few tables for your reference
--Person
Enterpriseid
Person_Id
LastName
FirstName
--Person_Relationship
Person_Id
Relations_Code
CreatedDate
--Person_Employers
Person_Id
Employee_id
Occuapation
Person,Person_Relationship and Person_Employers are tables.
The common field is Person_Id, But there is no Foreign Key relationship. Like this i have 3000 tables...
October 25, 2012 at 4:07 am
Still this query doesn't work, it is not pulling the common field name from all tables and just pulling few field and tables.. Please need more help on this.
October 25, 2012 at 3:19 am
Could someone please help me on this.. this is high priority
May 30, 2012 at 4:12 am
how to pull the output with select queries with examples or any website i can go through.. could you pls help on this..
May 14, 2012 at 4:20 am
This doesn't work, I am getting an error
Msg 402, Level 16, State 1, Line 369
The data types varchar and varchar are incompatible in the modulo operator.
August 26, 2011 at 6:12 am
CREATE TABLE PUBLIC
(
TestId INT,
TestCode Nvarchar(100)
)
August 26, 2011 at 5:55 am
@test-2 is the table variable.
Public table contains two columns.(Testcode and testid)
Using dynamic query
select @testquery =
'select testcode,testid from public where testcode like '% + @test-2 +%'...
August 26, 2011 at 5:44 am
I have mentioned the table for the example..
Thanks,
tony
August 26, 2011 at 5:38 am
Viewing 13 posts - 16 through 28 (of 28 total)