6
Answers

Sql blndr Que?

Photo of Sreekanth

Sreekanth

16y
3.8k
1

I need a row from  sql database with letters in different color(heading or any thing).. directly

i am in .net and i can do that in ,net codes..

can u help me to achieve that in sql?

i just want to know is there any chance for this ?

 

 

give up..? no chnace...hmm

 

Table :colors

col_id [primarykey][bigint]

clor [varchar]

and i sotred seven colors. now i need each row in 7 different colors.

like select * from color

id     clor

1      white(in whilte color)

2      red    (inn red color)

k..

Answers (6)

0
Photo of Vijaya Kadiyala
NA 2.4k 258.5k 16y

if i understand your requirement correctly the you should be using CROSS join.

SELECT i.id, c.color  

FROM   Colors AS i CROSS JOIN Colors AS c

SQL Server is Blind. It can't understand any colors to the rows or cells. What is total requirement?? do you want to display this in Front-end application??

Thansk -- Vijaya Kadiyala

www.DotNetVJ.Com

 

Accepted
0
Photo of Vijaya Kadiyala
NA 2.4k 258.5k 16y

Glad, you got the answer :).

 

0
Photo of Sreekanth
NA 439 997.7k 16y

Thanks for ur reply,

I just want to know blind or not(sql).

I think in .net coloring isnt a pblm.

 

0
Photo of Sreekanth
NA 439 997.7k 16y

Table :colors

col_id [primarykey][bigint]

clor [varchar]

and i sotred seven colors. now i need each row in 7 different colors.

like select * from color

id     clor

1      white(in whilte color)

2      red    (inn red color)

k..

 

0
Photo of Vijaya Kadiyala
NA 2.4k 258.5k 16y
When you say different colors what do you mean by this!! are these stored any in any table? if YES then what is the datatype?
0
Photo of Vijaya Kadiyala
NA 2.4k 258.5k 16y
When you say different colors what do you mean by this!! are these stored any in any table? if YES then what is the datatype?