Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Quary

$
0
0

Good Afternoon everyone. Happy Friday !!

currently im trying to export some data from sql but before i can continue i need to define a column "Remote Printer" with another table that define the printer itself "StatusMessage", I need a quary that can join the following two tables together to give me total results.

I know i can use the "Case" command but that will take me a long time to define each device with a name... i know there is a "Join" command but not sure how to go at it. Can someone help me with this

I need "dbo.item" to rename its currently number value for remote printer with the device name located under the dbo.StatusMessage

thanks for the help :)

DATABASE TABLE= DBO.Item

ItemName | Department | Price | RemotePrinter

Ice cream Desserts 2.00 14

Pizza Lunch 1.00 17

Coffee Beverages 1.00 ...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>