Viewing 15 posts - 346 through 360 (of 1,048 total)
I am not clear with your requirement..can you please some more detailed information to us.......
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 20, 2013 at 3:56 am
mkswanson (7/19/2013)
When...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 20, 2013 at 3:52 am
mehfuz.khaled (7/20/2013)
Op is also char. Sorry about that.
Change the datatype of Op to CHAR and run the query that I posted... Hope it will work for you
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 20, 2013 at 2:42 am
you can try this-
;WITH CTE AS
(
select op,imei, DENSE_RANK() over (order by op,imei) rankno
FROM mastertab
)
select c.op, COUNT(distinct rankno) - 1 cnt
FROM CTE c
GROUP BY c.op
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 20, 2013 at 1:28 am
First thing is your table structure is incorrect..
You have specified op as INT but you are inserting character values in that column
aa, 0191, 111222333
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 20, 2013 at 1:16 am
Can you please provide your merge script that you have written,,,,,
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 19, 2013 at 9:13 am
As Sean said we are not cleared what you are trying to achieve and your Select statement is also incorrect as you have nt specified any column names.....
Can you please...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 19, 2013 at 9:09 am
ChrisM@Work (7/19/2013)
Steve-3_5_7_9 (7/19/2013)
kapil_kk (7/19/2013)
NO you cant add the IDENTITY property to the existing column using a sql query....But it can be done from edit design of a table
Of course you...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 19, 2013 at 7:00 am
Steve-3_5_7_9 (7/19/2013)
kapil_kk (7/19/2013)
NO you cant add the IDENTITY property to the existing column using a sql query....But it can be done from edit design of a table
Of course you can....
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 19, 2013 at 6:21 am
PLease provide the proper DDL statements and data so that we can help you in your problem....
Refer this link whever you post any problem:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 19, 2013 at 5:56 am
Thanks Perry... I was unaware about this TUF file fact...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 19, 2013 at 5:53 am
NO you cant add the IDENTITY property to the existing column using a sql query....
But it can be done from edit design of a table
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 19, 2013 at 5:49 am
dan-572483 (7/18/2013)
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 19, 2013 at 12:03 am
I select SSDT as now when we open new SQL SERVER 2012 it comes with name Server Server Data Tool so I selected that option but still got wrong :w00t:
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 18, 2013 at 11:40 pm
You can do one thing.....
You can assign your constant value to a variable like this
Declare @var char(3) ='abc'
And put this variable in condition of your case statements.... So if...
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 18, 2013 at 10:00 pm
Viewing 15 posts - 346 through 360 (of 1,048 total)