Count Records where Field is Empty
Options
![Matt](https://us.v-cdn.net/6037124/uploads/userpics/S9IH7C4NYFWD/nWSW4BEIKQEDA.jpg)
Matt
Member ✭
A rather basic question here.
I'm able to query records from a related table, such as Users who've created a record in a separate table.
Some records will be "deleted" where I'll be adding a timestamp to those records as shown in the image.
I'd like to ignore these records where there is a timestamp present. Assuming this is good practice - happy to hear suggestions.
Any help is appreciated![Screen Shot 2021-11-13 at 8.36.02 PM.png]
I'm able to query records from a related table, such as Users who've created a record in a separate table.
Some records will be "deleted" where I'll be adding a timestamp to those records as shown in the image.
I'd like to ignore these records where there is a timestamp present. Assuming this is good practice - happy to hear suggestions.
Any help is appreciated![Screen Shot 2021-11-13 at 8.36.02 PM.png]
Comments
-
you can do this in a QUERY ALL RECORDS command.
https://docs.xano.com/working-with-data/functions/database-requests/query-all-records
It sounds like you would just do date_deleted = null
You can change the return type to "count" which would give you a number. -
Beauty - thanks. I overlooked using the 'null' input in the Custom Query as an "AND" function.
Solved!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback