how can i select a range of columns in a database(Sqlserver eg..)
i have name,id,and a dynamically created columns named after dates..
do if i query from 1-1-2011 to 16-1-2011 ..the query should return all the dates between that range…
excluding Sundays…
i am using access db with c#
so…i try is to select the columns from start date till we reach end date..
but how can it be done..(this removes Sundays too..:) )
also cant columns be selected using a index or something…like in arrays??
eg.schema is like this,,,,,column names are (id,name,’1-1-2011′,’2-1-2011′,’4-1-2011′,’6-1-2011′,’6-1-2011′)..how do i display all rows from 2-1-2011 to 6-1-2011?
Try this
then execute the generated select statement.