الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

ما الخطأ في هذ الاستعلام

بدأه نبيل.211 في 20 مارس 2016 · 3 رد · 521 مشاهدة · في قواعد بيانات Microsoft SQL Server
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

ارجو ممن يعرف الخطأ يخبرني وشكرا

SELECT
      [Code]
      ,[First_Name]
      ,[Active]
      ,Currencyt_Name
      ,[Email]
      ,[MPhone]
      ,[Address]
      ,[City]
      ,[Customer]
      ,Account_Ar_Name
      ,[Maxcredit]
      ,[Creditdays]
      ,[Supplier]
      ,Account_Ar_Name
      ,[Employee]
      ,Account_Ar_Name
      ,[Local]
      ,[Basic_salary]
      
  FROM [Warehouse_DB].[dbo].[Contactst]
    inner join Currencyt
  on Currencyt.cod=Contactst.cod
    inner join Accounts
  on Accounts.Account_Id=Contactst.Account_Id

  SELECT     Account_Id, Account_Ar_Name,classification_AR
  
FROM         dbo.Accounts
inner join Account_Type
on Account_Type.ID=Accounts.ID

where Accounts.ID=1 


GO

 

SQLQuery1.sql

#2

ممكن توضح  اه مشكلتك

#3

لدي ثلاث جداول كما في الصورة في المرفقات واريد استعلام بينهم كما وضعته كيف يمكنني فعل ذلك

Untitled-2.jpg

#4


SELECT
		Contactst.Code,
        Contactst.First_Name,
        Contactst.Active,
		Currencyt.Currencyt_Name,
        Contactst.Email,
        Contactst.BPhone,
        Contactst.[Address] as sAddress,
        Contactst.City,
        Contactst.Customer,
        Accounts.Account_Ar_Name
        Contactst.Maxcredit,
        Contactst.Creditdays,
        Contactst.Supplier,
        Contactst.Employee,
        Contactst.[Local] as sLocal,
        Contactst.Basic_salary,
		Account_Type.classification_AR		
FROM  
		dbo.Contactst
    inner join 
		dbo.Currencyt
	on 
		Currencyt.cod=Contactst.cod
    inner join 
		dbo.Accounts
	on 
		Accounts.Account_Id=Contactst.Account_Id
	inner join
		Account_Type
	on 
		Account_Type.ID=Accounts.ID
where 
		Accounts.ID=1

السلام عليكم ورحمة الله وبركاته

اتمني ان يفيدك هذا الكود

مواضيع مشابهة