Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8430889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:42:28+00:00 2026-06-10T05:42:28+00:00

I have many examples of this through my database. Below is a simple example

  • 0

I have many examples of this through my database. Below is a simple example you may be able to lend assistance with.

I have an Image table

image_src
street_number
steet_name
postcode
county
country
camera_used
title
description
date_time_taken
user_id

My question is to prevent duplicate data from being added such as camera which could be the same camera for multiple image I thought it best to separate the table.

However if a user then updates the camera in the camera_used table the id in each record would correspond to the updated camera across all images. Same situation with the address.

If this instance is it best to perform a check before the update to see if any other tables reference the id and if so create an insert if not update the record.

The situation is one user updates the camera, another uses think thats not my camera updates the record and back and to we go. Just was unsure if this the best way with one to many.

Image table at presententer image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:42:30+00:00Added an answer on June 10, 2026 at 5:42 am

    Don’t allow users to update the camera table, at least not directly.

    What they can do is update the camera used for their specific image which either finds the correct entry in camera or creates a new one. You don’t want to allow them to change the camera table directly at all or else it will change that camera for all images, as you indicated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question can best be asked by example. Say I have a database table
Am tearing my hair out here. Have read many examples which describe how to
I'm trying to add values from array to DB, have tried many variuos examples
In many examples I have seen online, AsyncTask is extended, the constructor is overriden,
i have a general question about properties and ivars. ive seen many different examples
I have a question about wiring web server controls. From many of the examples
Greetings everybody. I have seen examples of such operations for so many times that
I have many data.frames, for example: df1 = data.frame(names=c('a','b','c','c','d'),data1=c(1,2,3,4,5)) df2 = data.frame(names=c('a','e','e','c','c','d'),data2=c(1,2,3,4,5,6)) df3 =
I have many links in my page. For example <a href=/promotions/download/schools/australia.aspx>Australia</a> Now I want
I have many databases that uses various column-names for the same things. For example,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.