Viewing 15 posts - 16 through 30 (of 94 total)
aw lol, stupid of me, don't mind my example, I misread your sample given :hehe:
June 28, 2010 at 9:03 pm
Hi again,
Is this some kind of assignment?
DECLARE @tbl TABLE (ID INT)
DECLARE @value NVARCHAR(MAX), @isEven BIT, @half INT
INSERT INTO @tbl
VALUES (1),(2),(3),(4),(5),(6)--,(7)
--TRY ADDING 7 OR MORE NUMEBRS
-------------------------------------------------------------
-- Proper approach (I think)
-- THIS...
June 28, 2010 at 3:51 am
Are those the only columns? :hehe:
June 28, 2010 at 12:41 am
Hi there,
did you want something like this?
DECLARE @tbl table (id int,word nvarchar(max))
DECLARE @value nvarchar(max)
--sample table and data
insert into @tbl
values (1,'the'),(2,'big'),(3,'brown'),(4,'fox'),(5,'jumps'),(6,'over'),(7,'the'),(8,'lazy'),(9,'dog'),(10,'and...'),(11,'fin!')
set @value='2,10,5,4' -- filter parameters (try adding zero ex. '2,5,0,4')
set @value=@value+','
;with...
June 28, 2010 at 12:35 am
HI there,
Is this what your looking for?
SELECTg.group_name
,m.last_name
,m.first_name
FROM groups g
INNER JOIN members_groups mg ON (mg.group_id=g.group_id)
INNER JOIN members m ON (mg.member_id=m.member_id)
June 23, 2010 at 3:06 am
Im a cheapskate LOL :hehe:
anyways, i don't really need it right now, just trying out things. might buy it if I already need it.
Thanks anyway... ^__^
May 31, 2010 at 1:46 am
Found out that this is a limitation of express edition... hmmm... but still, does anyone know any workaround to this
May 31, 2010 at 12:06 am
This is a miss post sorry. cant delete
April 27, 2010 at 10:12 pm
Hi there,
Fix my last query, no need for a temp table anymore (just imagine the temp table here is your table)
Declare @tbl Table
(
...
April 27, 2010 at 10:10 pm
Hi there,
Hope this helps. This ain't the best solution though. I'll try to find a better one if I have the time.
Declare @tbl Table
(
id int identity,
customer nvarchar(10),
product nvarchar(10),
[date] datetime,
sale nvarchar(10)
)
Insert...
April 27, 2010 at 10:04 pm
^__^ Hi there,
uhmmm, i'm not usre if i understood the problem right...
i turn Ben's code to dynamic sql (which i always avoid using)
from Ben's code, are you saying you want...
April 8, 2010 at 2:46 am
oh!
Thanks guys ^__^
(forum noob here hehehe!)
March 26, 2010 at 1:23 am
Hi there,
Try CASTing them into numeric/decimals first
SELECT ROUND( CAST(-0.6401 AS DECIMAL(10,4)), 0 )
SELECT ROUND( CAST(-0.6401 AS DECIMAL(10,4)), 1 )
SELECT ROUND( CAST(-0.6401 AS DECIMAL(10,4)), 2 )
SELECT ROUND( CAST(-0.6401 AS DECIMAL(10,4)), 3...
March 26, 2010 at 1:20 am
Viewing 15 posts - 16 through 30 (of 94 total)