1
Creative Projects / Re: Programming Help Thread (For Dummies)
« on: March 20, 2012, 01:55:39 pm »
How do I show the results of two queries side by side? I have two separate queries that look like this:
And I want them to show side by side (i.e. Too Old, Age, Too Young, Age). A simple union doesn't do the trick.
Code: [Select]
SELECT Teacher.[Last Name] & ", " & Teacher.[First Name] AS [Too Old], DateDiff("yyyy", Teacher.[Birth Date], Date()) AS Age
FROM Teacher
WHERE DateDiff("yyyy", Teacher.[Birth Date], Date()) > 70;
and this:Code: [Select]
SELECT Teacher.[Last Name] & ", " & Teacher.[First Name] AS [Too Young], DateDiff("yyyy", Teacher.[Birth Date], Date()) AS Age
FROM Teacher
WHERE DateDiff("yyyy", Teacher.[Birth Date], Date()) < 20;
And I want them to show side by side (i.e. Too Old, Age, Too Young, Age). A simple union doesn't do the trick.