I have two tables. One has a list of links, and the other their styles, if available. This is later a sparse table, i.e. It does not have corresponding rows when their values are zero. I run the following query:
select hl.*, hls.colorCode, hls.bold
from HeaderLinks hl, HeaderLinkStyles hls
where hl.LinkId = hls.linkID
order by row asc, [column] asc
I want to change this so that if a row does not exist for a particular record, these columns will get null values in the result set.
Thank!
source
share