Currently i have 2 tables, which is user_table and application_table. The main table is application_table, but i need some information to display which only can find in user_table.
CREATE TABLE [dbo].[Application_Table] (
[Id] INT IDENTITY (0, 1) NOT NULL,
[Name] VARCHAR (50) NULL,
[Date] DATE NULL,
[Vehicle] VARCHAR (50) NULL,
[DestinationFrom] VARCHAR (50) NULL,
[DestinationTo] VARCHAR (50) NULL,
PRIMARY KEY CLUSTERED ([Id] ASC)
);
here is the second table:
CREATE TABLE [dbo].[User_table] (
[Name] VARCHAR (50) NOT NULL,
[Email] VARCHAR (50) NULL,
[Password] VARCHAR (50) NULL,
[Department] VARCHAR (50) NULL,
CONSTRAINT [PK_User_table] PRIMARY KEY CLUSTERED ([Name] ASC)
);
I need to display all information from application_table and some information such as email, department from user_table based on Name in application_table in gridview.
Is that any simple way to do it? I am quite new in asp net and c#, please guide me as i am a slow learner.