Click here to Skip to main content
15,881,744 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
sorry guys i am new to this forum
My requirement is

I want the output in proper format like

FUll name companyname
aabbc cccc
abcc sssss
ab sssbshjhsj
-----------------------------------------------------------------------
till this condition is Fullname like 'a%'
Then one more condition i.e, company_name like 'a%' Its out is like this below table
------------------------------------------------------------------
ddfdfd aaabbbbaa
eryeyruy aabbbdd
ruhj ahfhff

-------------------------------------------------------------------------
My output is coming like This below table

aabbbddss ssfsfs
aabbbddfsfs sssssfsfs
fdsfdsfds aaaaaaaddd
dfdgdf adafaf
aaaafdfdfd gdgdgdg
aaaaafdfgdgd trtryr
----------------------------------------------------------------------
But i need the out put in proper format like below table

-----------------------------------------------------------------
aabbbddss ssfsfs
aabbbddfsfs sssssfsfs
fdsfdsfds aaaaaaaddd
dfdgdf adafaf
sdskds aaahshsh
-------------------------------------------------------------------

Did all understand with out using UNION.I am using Row_number function for paging the result. along with query.
so plz help me in getting my task done.
Posted
Comments
guayasen_o 9-Dec-10 11:15am    
sorry, i dont understand what u need in the output. Can u xplain it a bit?

1 solution

It is very helpfull to us if you could desribe the actual tables structure and data.
and out table that what you need.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900