1

This is how my question looks from the SQL procedure, how can I use multiple tables in the FROM ?

ELSE IF @Case = 6 BEGIN
                        SELECT
                        Country,
                        PostalCode,
                        WorkshopId,
                        Comment,
                        Lat,
                        Lng,
                        Box,
                        30km,
                        Installation,
                        WorkShopId_HomeService,
                        WorkSHopId_Installation
                        FROM dbo.tbl_PostalCode AS PC WITH (NOLOCK)

                        WHERE (Country = @Country)
Prix
  • 19,417
  • 15
  • 73
  • 132

2 Answers2

2

Request you to please study about Joins for getting data from more than 1 table.

Study SQL JOIN Explanation

enter image description here

Prahalad Gaggar
  • 11,389
  • 16
  • 53
  • 71
0

Use JOINs . Have a loo at this

Giannis Paraskevopoulos
  • 18,261
  • 1
  • 49
  • 69