I have two tables: computers, and equipment. Both tables have all of the same information; make, model, location, etc. However, computers have two extra fields, processor, and ram.
I want to create a location report that displays all of the computers, and all other equipment in a specific room and display it in a table. Obviously the equipment will be blank for RAM and Processor.
I am having a hard time figuring out a query. If I use union, I get an error that the tables don’t match.
How would I go about doing this?
Thanks
Use
unionspecifying the exact same amount of columns.Like this:
Please note the two extra “fake” columns on the latter select.