skip to Main Content

Postgresql – Select joined table with same column name but different value using eloquent

I'm trying to call 2 columns from 2 different tables. applicants.ic_no and agents.ic_no. It have different values. Using the following codes only displayed only ic_no from agents.ic_no $claimLists = ClaimDetail::join('applicants', 'applicants.ic_no', '=', 'claim_details.ic_no') ->join('agents', 'agents.id', '=', 'claim_details.agent_id') ->where('claim_date', $cutt_off) ->groupBy('agents.id',…

VIEW QUESTION

Postgresql – How to queries in supabase realtime?

Most of the blogs and stacks suggests below database for chat. message_table -id -message -conversationId -sender -receiverId conversation_table -id -conversationId Now message_table look like this. So, for the chat screen I subscribe the message table. final mySubscription = supabase .from('message_table')…

VIEW QUESTION

Porting from SQLite to PostgreSQL: What is according of datatype byte[] and DateTime in .NET 6 inside PostgreSQL 14.5 SQL DDL script?

My context: I need creating an web-app use ASP.NET Core WebAPI .NET 6, Entity Framework Core 6, PostgreSQL 14.5 with JWT authentication/authorization. I mimics a sample at https://github.com/patrickgod/AuthenticationWebApi , then fork to me https://github.com/donhuvy/AuthenticationWebApi . This source code use .NET…

VIEW QUESTION
Back To Top
Search