Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I query specific date data? #923

Open
md-siam opened this issue Jan 1, 2023 · 0 comments
Open

How can I query specific date data? #923

md-siam opened this issue Jan 1, 2023 · 0 comments

Comments

@md-siam
Copy link

md-siam commented Jan 1, 2023

My table is shown below:

await db.execute(
          '''
          CREATE TABLE IF NOT EXISTS $maintransaction(
            id TEXT PRIMARY KEY NOT NULL,
            userId TEXT NOT NULL,
            walletId TEXT NOT NULL,
            selectCategoryId TEXT NOT NULL,
            currencyId TEXT NOT NULL,
            transactionCategoryId TEXT NOT NULL,
            eventId TEXT NOT NULL,
            currencyCode TEXT NOT NULL,
            currencySymbol TEXT NOT NULL,
            transactionAmount REAL NOT NULL,
            isCredit INTEGER NOT NULL,
            isDebit INTEGER NOT NULL,
            transactionDate TEXT NOT NULL,
            transactionWith TEXT NOT NULL,
            transactionNote TEXT NOT NULL,
            reminderTime TEXT NOT NULL,
            selectCategoryImage TEXT NOT NULL,
            createdAt TEXT,
            updatedAt TEXT NOT NULL)
          ''',
        );

I want to query using the transactionDate, to get all the transactions that happened last month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant