Jump to content

Recommended Posts

Posted

If i have a table X having columns abc.

 

I need to compare column a and b and know if there are any rows matching in them.

 

I need to compare column a and c and know if there are any rows matching in them.

 
Posted

single statement or two statements

 

 

SELECT a,b FROM TABLEX

WHERE (a=b) 

 

SLECT a,c FROM TABLEX

WHERE  (a=c)

 

single aite OR use chey 

Posted

If i have a table X having columns abc.

 

I need to compare column a and b and know if there are any rows matching in them.

 

I need to compare column a and c and know if there are any rows matching in them.

 

oka table lo column comparing enti...

 

ide kada

 

select  a, b from X

where  a = b

Posted

SELECT * FROM table WHERE a = b

SELECT * FROM table WHERE a = c

Posted

SELECT * FROM table WHERE a = b
SELECT * FROM table WHERE a = c

Madhyalo oka UNION padesthe motham rows vasthayi kada.. TS ki kavalsindi adena
×
×
  • Create New...