Viewing 15 posts - 1,621 through 1,635 (of 1,920 total)
May be, something like this?
WITH CTE(ID_NUMBER ) as
(
select distinct O.ID_NUMBER ID_NUMBER from Table as O
WHERE (O.FIRST_DATE BETWEEN '20090101' AND '20091231')
)
select ID_NUMBER , count(ID_NUMBER) R_Count from CTE
GROUP BY...
May 4, 2010 at 1:57 am
I dint exactly understand what you wnat to do, but as far i could comprehend from your post, here is a set of code that might interest you.
1. INSERT only...
May 3, 2010 at 10:57 pm
Seth, yes. A copy-paste is not enough. And also, i need T-SQL statments only. THis is kind of automating an existing work-process which is using SQL and Excel 2003. He...
May 3, 2010 at 10:23 pm
I don't know what the best possible solution is, but i will try the following step:
1. Write a SP in Database1 that will check if a row is already existing;...
May 3, 2010 at 8:40 pm
Repeated post. Please pour in your suggestions and replies at the following location http://www.sqlservercentral.com/Forums/Topic915042-392-1.aspx.
Thanks!
May 3, 2010 at 8:30 pm
Buddy, this cant be done, unless you provide the Schemas of the tables, some sample data , a refined question and clear-cut desired results. Then, i promise you, there are...
May 3, 2010 at 8:29 pm
reg 18234 (5/3/2010)
I'm doing these tables in Access 2003 which apparently doesn't have scripting mechanisms like SQL Server.
Reg, for Access 2003, you will have to use the brackets...
May 3, 2010 at 8:21 pm
Quite possible, buddy.. but you will have to tell us atleast the description of the house; we ourselves will find out the address and the fastest way getting there.. now...
May 3, 2010 at 3:26 am
Simon, i would suggest that, u just
1. create a stored procedure with only one parameter.
2. create a comma-delimited string with the Table_Name+Columns.
3. Pass this concatenated comma-delimited string to...
May 3, 2010 at 12:47 am
NewBeeSQL (4/30/2010)
Second one is so sweet and fast as you....thanks again......
Sheesh, NewBee..:blush: that one awesome appreciation.. i would say u are a Honey Bee.. lol...
April 30, 2010 at 2:56 am
Here is another method. Again , Thanks for the Setup BOB!
;WITH CTE(RecID , RecType , Hierarchy , Msg,R)
AS
(
select RecID , RecType , Hierarchy , Msg, ROW_NUMBER() OVER(PARTITION BY RecType ORDER...
April 29, 2010 at 10:39 pm
Another variation of the same functionality but with much faster code
;WITH ORDERED_TABLE (ID, period1, R1, pname1, R2)
AS
(SELECT ID1
,period1, ROW_NUMBER() OVER(PARTITION BY ID1 ORDER BY...
April 29, 2010 at 5:53 am
Viewing 15 posts - 1,621 through 1,635 (of 1,920 total)