Skip to content

Is there a best way to join multiple tables

Can some one please help in joining/merging the table like below. I know how to do if the department columns (depart_1, depart_2, depart_3) are in one table. but not able to achieve this scenario as they are in different tables. I have almost 100 fields like department, so little concern about performance as …

ASP / SQL: Filepath as clickable link

I have a database file that looks like the following: When I put this in a SQL Datasource (Visual Studio), the file should be clickable text or image. Now it’s just plain text. What I currently have is: But this links to link instead of the content of the sql. Thanks Answer Remember, code behind can use…

SQL to return one row from many

I have the following data PersonId City Type UpdateDate 123 Boston P 01/01/2021 123 Boston M 02/01/2021 130 Detroit P 01/01/2021 130 Detroit M 03/01/2021 140 Dallas M 02/01/2021 140 Dallas M 03/…