Titile

To make the name and email fields required in Contact Form 7, you’re already using the correct syntax with the * asterisk symbol. This symbol (*) after the field type (like text* or email*) means the field is required.

Your current code is already correct, but here’s a cleaner version for clarity and implementation:

htmlCopy code<label> Your Name
[/protected]

</label> <label> Your Email

</label> <label> Subject

</label> <label> Your Message (optional)

</label>

✅ Explanation:

  • text* your-name → makes the Name field required.
  • email* your-email → makes the Email field required.
  • text your-subject and textarea your-message are optional unless you also want them required (then use text* or textarea*).

If you want to also make subject required, change:

htmlCopy code[text your-subject]
[/protected]

to:

htmlCopy code[text* your-subject]
[/protected]

Let me know if you want to customize error messages or add validation!

DECLARE @Profile TABLE (
    Name NVARCHAR(50),
    Title NVARCHAR(100),
    ExperienceYears INT,
    Skills NVARCHAR(MAX),
    CareerDetails NVARCHAR(MAX)
)

INSERT INTO @Profile 
VALUES
(
    'Mehedi Amin',
    'Senior SQL Database Administrator',
    10,
    'SQL Server Administration, Performance Tuning, Automation, Cloud Infrastructure Support (AWS, Azure)',
    'Led onshore and offshore teams, developed automation solutions using T-SQL and PowerShell, managed database migrations'
);

DECLARE @CareerHistory TABLE (
    StartYear INT,
    Event NVARCHAR(MAX)
)

INSERT INTO @CareerHistory 
VALUES
(2006, 'Graduated BBA in Bangladesh; began career in sales analytics - managed nationwide sales data using MS Excel, MS Access'),
(2010, 'Relocated to USA; transitioned into business analysis - utilized BI tools for retail and real estate sectors'),
(2014, 'Joined Interactive Resources Inc. SQL DBA as contractor; built foundational database administration skills'),
(2018, 'Promoted to Senior SQL DBA at Black Knight; SME for core applications - performance tuning, incident response, automation development');

SELECT 
    Name,
    Title,
    ExperienceYears,
    Skills,
    CareerDetails
FROM @Profile;

SELECT 
    StartYear,
    Event
FROM @CareerHistory;

ready to run in SQL Server Management Studio (SSMS) or any T-SQL-compatible environment:

What this script does:

  • Creates a mini résumé profile for “Mehedi Amin”.

ready to run in SQL Server Management Studio (SSMS) or any T-SQL-compatible environment:

sqlCopy code-- Declare the @Profile table variable
DECLARE @Profile TABLE (
    Name NVARCHAR(50),
    Title NVARCHAR(100),
    ExperienceYears INT,
    Skills NVARCHAR(MAX),
    CareerDetails NVARCHAR(MAX)
);

-- Insert a row into the @Profile table
INSERT INTO @Profile 
VALUES
(
    'Mehedi Amin',
    'Senior SQL Database Administrator',
    10,
    'SQL Server Administration, Performance Tuning, Automation, Cloud Infrastructure Support (AWS, Azure)',
    'Led onshore and offshore teams, developed automation solutions using T-SQL and PowerShell, managed database migrations'
);

-- Declare the @CareerHistory table variable
DECLARE @CareerHistory TABLE (
    StartYear INT,
    Event NVARCHAR(MAX)
);

-- Insert rows into the @CareerHistory table
INSERT INTO @CareerHistory 
VALUES
(2006, 'Graduated BBA in Bangladesh; began career in sales analytics - managed nationwide sales data using MS Excel, MS Access'),
(2010, 'Relocated to USA; transitioned into business analysis - utilized BI tools for retail and real estate sectors'),
(2014, 'Joined Interactive Resources Inc. SQL DBA as contractor; built foundational database administration skills'),
(2018, 'Promoted to Senior SQL DBA at Black Knight; SME for core applications - performance tuning, incident response, automation development');

-- Select data from the @Profile table
SELECT 
    Name,
    Title,
    ExperienceYears,
    Skills,
    CareerDetails
FROM @Profile;

-- Select data from the @CareerHistory table
SELECT 
    StartYear,
    Event
FROM @CareerHistory;
[/protected]

What this script does:

Leave a Reply

Your email address will not be published. Required fields are marked *