I've this table menu with which I want to save the data in a specific div
when I press save. the query must recognize or read the first later of primary key like
if its 101. It reads first letter 1 and than enters that value in a specific div
here is the table
I know I have to write the inner query but how please helps
First recognize using SUBSTRING and than insert that in to specific asp:menu
menuCode is the colums that it must read
CREATE TABLE [dbo].[tblMenu]( [menuCode] [varchar](150) NOT NULL Primary key, [moduleCode] [varchar](150) NULL, [menuName] [varchar](150) NULL, [menuSource] [nvarchar](500) NULL, [active] [bit] NULL, [ParentCode] AS moduleCode + '-' + menuCode, )