Viewing 15 posts - 2,701 through 2,715 (of 5,504 total)
Unfortunately, your sample data cannot be used since there are a few tabl DDL missing. Please modify.
October 19, 2010 at 2:33 pm
It looks like it's possible to replace one or two of the UNION with a CASE statement.
It also migt be a good idea to use the "divide'n'conquer" method, meaning to...
October 19, 2010 at 2:26 pm
Please decide by yourself which option is easier to read....
DECLARE @tbl TABLE
(
id INT, name VARCHAR(30)
)
INSERT INTO @tbl SELECT 1 ,'x'
-- option a
SELECT 'id' AS col1,CAST(id AS...
October 18, 2010 at 3:04 pm
duplicate post.
please continue at http://www.sqlservercentral.com/Forums/FindPost1006219.aspx
October 18, 2010 at 2:53 pm
Please any book on RDBMS.
What is the message you're trying to bring across with that statement? Sounds incomplete...
Tables have no order.
The question was not about the order...
October 17, 2010 at 1:19 pm
Unfortunately, it seems like you didn't read the article yet.
I tried to import the xls data you provided but the time columns will remain empty even if it seems like...
October 17, 2010 at 8:16 am
ashkan siroos (10/17/2010)
I didn't mean that , and i know you help me and all people because of your kindness.
I will attache those immediately, and if i said...
October 17, 2010 at 6:31 am
Ashkan,
did you read the article I pointed you at?
The purpose of posting table def and sample data in a ready to use format is to help us help you.
We are...
October 17, 2010 at 4:30 am
It depends.
Sounds like an interview question (at least in combination with your other question at the very same time)
October 17, 2010 at 3:28 am
elham_azizi_62 (10/17/2010)
hi all.how to combine 2 pivot table in 1 view?
It depends.
Sounds like an interview question (at least in combination with your other question at the very same time)
October 17, 2010 at 3:26 am
I don't think there is a c.u.r.s.o.r *cough* needed...
But in order to show a set based solution I'd like to see table def for cardtime.dbo.inout and cardtime.dbo.WatchBuilding including some sample...
October 17, 2010 at 3:22 am
Sounds like a homework question.
If you use the answer from above without quoting the source (therewith stating it's not your solution) it'll be considered as plagiarism. It's cheating anyway.
Another story...
October 17, 2010 at 3:17 am
How about this?
;WITH cte AS
-- split each string by character and decide UPPER or lower based on previous character or being the first char
(
SELECT
N,
Id,
CASE
WHEN N=1...
October 16, 2010 at 5:30 pm
Ninja's_RGR'us (10/16/2010)
...How long are they required to keep it around?
Due to the table and column names I'd guess we're talking about a database that needs to be compliant with...
October 16, 2010 at 2:22 pm
Viewing 15 posts - 2,701 through 2,715 (of 5,504 total)