How can you display only two columns, email and WhatsApp, in a data table?
1Times asked
Jun 2026Last seen
Jun 2026First seen
💡 Model Answer
To display only the email and WhatsApp columns, you need to select those fields from your data source and bind them to the UI component. In SQL you would write:
sql
SELECT email, whatsapp FROM users;If you are using a front‑end framework like React, you would map over the data array and render only those two properties:
jsx
{users.map(u => (
<tr key={u.id}>
<td>{u.email}</td>
<td>{u.whatsapp}</td>
</tr>
))}The key idea is to filter the data at the source (SQL or API) or in the rendering logic so that only the desired columns appear in the table.
This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.
🎤 Get questions like this answered in real-time
Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers — invisible to screen sharing.
Get Assisting AI — Starts at ₹500